package cn.kkcxy.blog.system.service.impl.sys;

import cn.kkcxy.blog.core.entity.sys.SysVisitorLog;
import cn.kkcxy.blog.system.mapper.sys.SysVisitorLogMapper;
import cn.kkcxy.blog.system.service.sys.SysVisitorLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @BelongsProject: kkcxy-blog
 * @BelongsPackage: cn.kkcxy.blog.system.service.impl.sys
 * @Author: kkcxy
 * @CreateTime: 2024-09-29 01:23
 * @Description: 系统访问日志服务实现类
 * @Version: 1.0
 */
@Slf4j
@Service
public class SysVisitorLogServiceImpl extends ServiceImpl<SysVisitorLogMapper, SysVisitorLog> implements SysVisitorLogService {

    /**
     * SysVisitorLog Mapper
     */
    @Resource
    private SysVisitorLogMapper sysVisitorLogMapper;

    /**
     * @description: 获得访问量
     * @author: kkcxy
     * @date: 2024/9/29 1:57
     * @param: []
     * @return: java.lang.Integer
     **/
    @Override
    public Integer getVisitorCount() {
        return sysVisitorLogMapper.getVisitorCount();
    }
}
